'''
定义函数，传递参数，
调用n边型旋转
'''
from turtle import *


def rotation(edge):
    angle = 360 / edge - 1
    for x in range(360):
        forward(x)
        left(angle)
    return


rotation(6)
done()
